<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%
	String compID = request.getParameter("compID");
	String compName = request.getParameter("compName");
	String compSector = request.getParameter("compSector");
	String compAdress = request.getParameter("compAdress");
	String compCity = request.getParameter("compCity");
	String compCountry = request.getParameter("compCountry");
	String compPhone = request.getParameter("compPhone");
	String compEmail = request.getParameter("compEmail");
%>
    
    	<hr>
    	<form method="post">
			<input type="hidden" name="action" value="updatedCompany">
			<input type="hidden" name="compID" value="<%= compID %>">
			<input type="hidden" name="CompName" value="<%= compName %>"> 
			<fieldset>
				<legend>Company Details</legend>
				<p>Name: <input type="text" name="name" value="<%= compName %>" disabled></p>
				<p>Sector: <input type="text" name="CompSector" value="<%= compSector %>"></p>
				<p>Address: <br>
					<p><textarea name="CompAddr" rows="5" cols="25"><%= compAdress %></textarea></p>
				</p>
				<p>City: <input type="text" name="CompCity" value="<%= compCity %>"></p>
				<p>Country: <input type="text" name="CompCountry" value="<%= compCountry %>"></p>
				<p>Phone Nb: <input type="text" name="CompPhone" value="<%= compPhone %>"></p>
				<p>Email: <input type="text" name="CompEmail" value="<%= compEmail %>"></p>
			</fieldset>
			<fieldset>
				<p><button type="submit">Update Company</button> <button type="reset">Clear</button></p>
			</fieldset>
		</form>	